package com.tju.t5.entity;

import java.util.HashSet;
import java.util.Set;


/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer roleID;
    private String roleName;
    private String description;
    private Set<Privilege> privileges = new HashSet<Privilege>(0);
    private Set<User> users = new HashSet<User>(0);


    // Constructors

    /** default constructor */
    public Role() {
    }

    
    /** full constructor */
    public Role(String roleName, String description, Set<Privilege> rolePrivileges, Set<User> users) {
        this.roleName = roleName;
        this.description = description;
        this.privileges = rolePrivileges;
        this.users = users;
    }

   
    // Property accessors

    public Integer getRoleID() {
        return this.roleID;
    }
    
    public void setRoleID(Integer roleID) {
        this.roleID = roleID;
    }

    public String getRoleName() {
        return this.roleName;
    }
    
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

    public Set<Privilege> getPrivileges() {
        return this.privileges;
    }
    
    public void setPrivileges(Set<Privilege> privileges) {
        this.privileges = privileges;
    }

    public Set<User> getUsers() {
        return this.users;
    }
    
    public void setUsers(Set<User> users) {
        this.users = users;
    }
   








}